import request from '@/utils/request'

export function getParentId(parentId) {
  return request({
    url: `/api/security/partner?parentId=${parentId}`,
    method: 'get'
  })
}

export function postParent(data) {
  return request({
    url: `/api/security/partner`,
    method: 'post',
    data
  })
}

export function deleteParent(parentId) {
  return request({
    url: `/api/security/partner/${parentId}`,
    method: 'delete'
  })
}

export function getParent(parentId) {
  return request({
    url: `/api/security/partner/${parentId}`,
    method: 'get'
  })
}

export function putParent(parentId,data) {
  return request({
    url: `/api/security/partner/${parentId}`,
    method: 'put',
    data
  })
}